package com.hm.hsw1;

public class Clerk extends Employee{
    private Manager manager;

    public Clerk(String name) {
        super(name);
    }

    public Clerk() {
    }

    @Override
    public void showMsg() {
        System.out.println(getName()+getDept()+getWorkId()+getManager().getName());
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        this.manager = manager;
    }

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }
    @Override
    public String toString() {
        return "Clerk{" +
                "manager=" + manager.getName() +
                '}';
    }
}
